﻿/*+===================================================================
File:      BossOneHeart.h

Summary:   Định nghĩa lớp CBossOneHeart
===================================================================+*/

#ifndef _BOSSONEHEART_H_
#define _BOSSONEHEART_H_

#include "GameObject.h"
#include "ExplosionGroup.h"

#define BOSS_ONE_HEART_BLOOD	40
/*C+==================================================================
Class:    CBossOneHeart

Summary:  Lớp CBossOneHeart miêu tả trái tim của boss màn 1.
==================================================================-C*/
class CBossOneHeart : public CMoveableObject
{
private:
	float m_fTimeDie;
	CExplosionGroup* m_pExplosion;
	vector<D3DXVECTOR2> m_aPosEx;
public:
	CBossOneHeart(D3DXVECTOR2 pos, int id, int typeId);
	~CBossOneHeart();

	void Update(float timeFrame);

	void UpdateBox(float timeFrame);

	void UpdateCollision(vector<CGameObject*> vecGameObjs, float timeFrame);

	void Explode(float timeFrame);

	float GetTimeDie() 
	{
		return m_fTimeDie;
	}
};

#endif